﻿using System;
using System.Net;
using FBGraph.Configuration;

namespace FBGraph
{
    public class FBGraphApiRequest
    {
        public FBGraphApiRequest(HttpWebRequest request)
        {
            this.InnerRequest = request;
            
            var config = new FBGraphConfigurationManager();
            var apiConfig = config.GetApiConfiguration();

            this.InnerRequest.Timeout = apiConfig.RequestTimeout;
        }

        public HttpWebRequest InnerRequest { get; private set; }
        public Int32 Attempts { get; set; }
    }
}